package models

import "time"

// 销售订单表

type SalesOrders struct {
	//销售订单ID，主键
	OrderID int `json:"order_id" orm:"pk;auto"`
	//支付状态
	PlayStatic string `json:"play_static"`
	//订单金额
	OrdersMoney int `json:"orders_money"`
	//订单名称
	OrderName string `json:"order_name"`
	//订单生成时间
	CreateTime time.Time `json:"create_time" orm:"auto_now_add"`
	//订单更新时间
	UpdateTime time.Time `json:"update_time" orm:"auto_now"`
	//订单状态
	OrderStatus string `json:"order_status"`
	//一对多customers
	Customers *Customers `json:"customers" orm:"rel(fk)"`
	//一对多服务表
	Services *Services `json:"services" orm:"rel(fk)"`
}
